home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 2
/
CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso
/
graphics
/
dust
/
dusthelp2
/
for
< prev
next >
Wrap
Text File
|
1995-09-28
|
728b
|
32 lines
Loops
-----------------------------------------------------------------
Dust can perform nested FOR-loops, the loop-counter is equal to
the loop-variable of the innerst loop.
The loop-counter is the number inserted into a string containg
format-commands.
Syntax:
FOR(<loop-variable>,<from>,<to>[,<step>])
.
.
.
END
Example:
for(i,1,10)
echo("unformatted:$, formatted:%")
end
Contains a string format-commands so this commands will be replaced by
the recent value of the loop-counter.
$ - inserts the value unformatted
% - inserts the value formatted
Example:
A string "$. Objekt: obj.%" is changed into "23. Objekt: obj.0023" if
the loop-counter was 23.